<script setup lang="ts">
import { ref } from 'vue'
import type { BusinessUIAction, BusinessUIFormType, DicType } from '@/types/custom'

import PaymentPrint from '@/views/components/grid/components/print/PaymentPrint.vue'

interface Props {
  uiForm?: BusinessUIFormType
  dicTable?: DicType[]
  _id: string
  _action?: BusinessUIAction
  _params: TypedAny
  defaultParams?: TypedAny
  _row?: TypedAny
}

defineProps<Props>()
const emit = defineEmits(['close', 'fetch'])

const _page = ref()
</script>

<template>
  <PaymentPrint
    v-if="uiForm?.id === '5b3a5858-326c-491d-a5ad-199f09326db3'"
    ref="_page"
    :_row="_row"
    :ui-form="uiForm"
    :dic-table="dicTable"
    @close="emit('close')"
    @fetch="emit('fetch')"
  />
  <el-empty v-else :description="`暂无《${uiForm?.id}业务》打印模板`"></el-empty>
</template>
